gl: Relay use-es from context to paint data
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 18 Apr 2016 09:21:36 +0000 (10:21 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 25 Apr 2016 11:29:36 +0000 (12:29 +0100)
This way we can select the appropriate API or the appropriate shaders.

https://bugzilla.gnome.org/show_bug.cgi?id=743746

gdk/gdkglcontext.c

index 00a2c78e3f9c1dd94e71603b3f492d2f733191c9..6052aed284460b6aa89347a84655b06bd9f3617e 100644 (file)
@@ -349,6 +349,7 @@ gdk_gl_context_get_paint_data (GdkGLContext *context)
     {
       priv->paint_data = g_new0 (GdkGLContextPaintData, 1);
       priv->paint_data->is_legacy = priv->is_legacy;
+      priv->paint_data->use_es = priv->use_es;
     }
 
   return priv->paint_data;